#!user/bin/env python3
# -- coding: utf-8 --
# @Createtime：2022/5/30
# @Updatetime：17:35
# @Author：Test008
# @File：util.py
# @Description：
from selenium.webdriver.edge.service import Service
from selenium import webdriver
import os


# 创建浏览器

# class Driver(object):
#     driver_path = os.path.join(os.path.dirname(__file__), '../driver')
#     s = Service(driver_path + '/msedgedriver.exe')
#     driver_edge = webdriver.Edge(service=s)
#     driver_edge.maximize_window()


class Driver1(object):
    driver_path = os.path.join(os.path.dirname(__file__), '../driver')
    s1 = Service(driver_path + '/chromedriver.exe')
    driver_chrome = webdriver.Chrome(service=s1)
    driver_chrome.maximize_window()
    driver_chrome.implicitly_wait(10)



